<?php
include "../config/koneksi.php";
include "../class/hubungi_kami.php";

if (ISSET($_GET["id_hubungi"])){
$id_hubungi=$_GET["id_hubungi"];
}
$Kontak_Dao = new Kontak_Dao();
$kontak=$Kontak_Dao->get($id_hubungi);
?>

<div align="center"></div>
<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
  <tr >
    <td height="30"> 
      <div align="left"><font size="3" face="tahoma">Data Pesan</font><hr color=#CCCCFF></div></td>
    </tr>
  </table>
<table width="100%" border="0" bordercolor="#666666" bgcolor="#FFFFFF">
  <tr valign="middle" bordercolor="#FFFFFF"> 
    <td colspan="3"><div align="left"></div></td>
  </tr>
  <tr>
    <td valign="top">
    	<table width="100%" border="0" bordercolor="#000000">
  
          <tr bordercolor="#FFFFFF"> 
          	<td valign="top" width="25%"><font size="2" face="tahoma">Nama</font></td>
          	<td valign="top" width="2%"><font size="2">:</font></td>
          	<td valign="top" width="73%"><font face="tahoma" size="2"><?php echo"$kontak->nama";?></font></td>
          </tr>
          <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Email</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top"><font face="tahoma" size="2"><?php echo"$kontak->email";?></font></td>
          </tr>
		  <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Isi Pesan</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top" align=justify><font size="2" face="tahoma"><textarea cols=50 rows=5><?php echo"$kontak->pesan";?></textarea></font></td>
          </tr>
		  <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Tanggal Pesan</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top" align=justify><font size="2" face="tahoma"><?php echo"$kontak->tanggal";?></font></td>
          </tr>
          
		</table>
	</td>
		<?php 
		echo"</tr></table>";
?>
<br>
<table width=45% align=center>
<tr>
<td><a href=index.php?menu=list_hubungikami><input type=submit value=Back></a></td>
</tr></table>